package com.hylink.bean;

/**
 * @author Yali.Ru
 * @version V1.0
 * @Description: 封装响应报文
 * @date 2017/12/4 14:38
 */
public class Result {

    private int code;
    private String msg;
    private Object data;


    public Result() {
    }

    public Result(ResultCode resultCode, Object data) {
        this(resultCode);
        this.data = data;
    }



    public Result(ResultCode resultCode) {
        this.code = resultCode.getCode();
        this.msg = resultCode.getMsg();
    }



    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
